//
// Created by yunlang on 2021/12/1.
//
#include<iostream>
#include<cstdio>
#include "File.h"
#include "a.h"

File::File(unsigned char* fileData, unsigned int dataBitSize, FILETYPE fileType)
{
    this->fileType = fileType;
    this->fileData = fileData;
    this->dataBitSize = dataBitSize;
}

File::~File()
{
    delete[] fileData;
}

unsigned char* File::getFileData()
{
    return fileData;
}

unsigned int File::getDataBitSize()
{
    return dataBitSize;
}

FILETYPE File::getFileType()
{
    return fileType;
}